-
-
Notifications
You must be signed in to change notification settings - Fork 167
languages/beancount: init #1100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v0.8
Are you sure you want to change the base?
Conversation
0d75b65 to
8259788
Compare
8259788 to
b38da6f
Compare
b38da6f to
fa30514
Compare
8b98f07 to
ba9ce8b
Compare
fa30514 to
aade359
Compare
aade359 to
25c8b76
Compare
25c8b76 to
c6e58f0
Compare
NotAShelf
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay, I've meant to reply much earlier but kept forgetting each time. Two little comments before we can get this merged.
| ::: {.note} | ||
| 'beancount-language-server' requires 'bean-check' and 'bean-format'. | ||
| Both are provided by 'pkgs.beancount'. These binaries must be in | ||
| your PATH or in 'vim.extraPackages'. There are no additional checks | ||
| to verify if this requirement is met. | ||
| ::: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, this is what has been bothering me about this PR. Relying on packages being installed externally somehow is not something I'm very keen on. Ideally the beancount package should be wrapped here with the necessary dependencies in its path (via wrapProgram etc.) so that this warning is not necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure how to best use wrapProgram so I instead used writeShellScriptBin, the end result is the same and I tested everything works.
Please let me know what you think about this.
c6e58f0 to
08caf4d
Compare
Create the `vim.languages.beancount` module using `bean-format` and `beancount-language-server`.
08caf4d to
82b0452
Compare
Create the
vim.languages.beancountmodule usingbean-formatandbeancount-language-server.Current Issues
Formatting Behavior:
beancount-language-servercurrently lacks an option to disable formatting. This results in documents being automatically formatted, even when the settingvim.languages.beancount.format.enableis set tofalse.Formatting Package Installation:
vim.languages.beancount.format.enablesetting does not install the necessary formatting package, which isbean-format. This package is included inpkgs.beancount.beancount-language-serveralso depends onpkgs.beancount, leading to a decision point regarding installation options. I would appreciate guidance on the preferred approach:pkgs.beancounttovim.extraPackages: This would ensure that the formatting package is available without requiring additional user setup.bean-formatis available in their system PATH, similar to the current setup for the language server.Sanity Checking
nix fmt).#nix(default package).#maximal.#docs-html(manual, must build).#docs-linkcheck(optional, please build if adding links)x86_64-linuxaarch64-linuxx86_64-darwinaarch64-darwin